package com.example.backend.model;

import com.example.backend.entity.Post;
import com.fasterxml.jackson.annotation.JsonProperty;

        import java.util.List;

public class PostModel extends BaseModel {
    @JsonProperty("data")
    List<Post> data;

    public PostModel(int code,String result,List<Post> posts){
        this.code=code;
        this.result=result;
        this.count=posts.size();
        this.data=posts;
    }
}
